package org.gcwork.fms.service.imple;

import java.util.List;
import java.util.Map;

import org.gcwork.fms.dao.TaccountMapper;
import org.gcwork.fms.domain.Taccount;
import org.gcwork.fms.service.TaccountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class TaccountServiceImple implements TaccountService {

	@Autowired
	private TaccountMapper taccountMapper;
	
	@Override
	public Taccount findAccountbyId(int id) {
		return taccountMapper.selectByPrimaryKey(id);
	}

	@Override
	public List<Taccount> findAllByCondition(Map<String, Object> map) {
		return taccountMapper.selectAllTaccount(map);
	}
	
}
